const config = {
  id: 'thewlevel',
  title: '水质断面',
  icon: require('../images/water.png'),
  // subtitle:'辅助说明',
  dataType: 'json', //是否从json拉取数据绘制图层 原yearbook分类   //若不需要拉取数据 为service
  displayType: 'featureLayer', //migrateEchartLayer featureLayer
  uniqueKey: 'watername', // 列表中显示的uniqueKey
  childrenHaveTimeLine: false,
  fieldJsonArray: [
    { name: 'OBJECTID', alias: 'ObjectID', type: 'oid' },
    { name: 'watername', alias: 'watername', type: 'string' },
    { name: 'thewlevel', alias: 'thewlevel', type: 'string' },
    { name: 'prewlevel', alias: 'prewlevel', type: 'string' },
    { name: 'wph', alias: 'wph', type: 'double' },
    { name: 'wdo', alias: 'wdo', type: 'double' },
    { name: 'codmn', alias: 'codmn', type: 'double' },
    { name: 'nhthn', alias: 'nhthn', type: 'double' },
  ],
  // 场景参数
  initCamera: {
    heading: 0,
    tilt: 0.363,
    fov: 55,
    position: {
      latitude: 30.8,
      longitude: 119.34,
      z: 2406952,
    },
  },
  //底图
  basemapTitle: '深色底图',
  // 右侧面板显示参数
  hasTable: false,
  hasChart: false,
  hasDataInfo: false,
  // 年鉴数据为false 港口等需要通过数据库数据生成点时为true
  hasGeometryData: true,
  //是否打开图例
  hasLegend: true,
  // service图层
  serviceLayer: [],
  definitionExpression: "",
  //数据级别
  selectedDataLevel: '', //630100
  // 是否有时间轴  时间轴是否显示由timeSeries 决定
  hasTimeLine: false,
  unit:'',
  initTime: '',
  timeSeries: [],
  hoverEnabled: true,
  geometryType: 'point',
  renderer: {
    defaultLabel: '无数据',
    defaultSymbol: {
      type: 'simple-fill',
      color: 'white',
      outline: { width: 0.2, color: [50, 50, 50, 0.6] },
    },
    type: 'unique-value',
    field: 'thewlevel',
    legendOptions: { title: '本周水质' },
    uniqueValueInfos: [
      {
        value: '一类',
        label: 'Ⅰ类',
        symbol: {
          size: 20,
          type: 'simple-marker',
          color: [0, 255, 0, 255],
          outline: {
            width: 0.5,
            color: [255, 255, 255, 0.5],
          }
        },
      },
      {
        value: '二类',
        label: 'Ⅱ类',
        symbol: {
          size: 20,
          type: 'simple-marker', // autocasts as new SimpleMarkerSymbol()
          color: [255, 255, 0, 255],
          outline: {
            width: 0.5,
            color: [255, 255, 255, 0.5],
          }
        },
      },
      {
        value: '三类',
        label: 'Ⅲ类',
        symbol: {
          size: 20,
          type: 'simple-marker', // autocasts as new SimpleMarkerSymbol()
          color: [255, 165, 0, 255],
          outline: {
            width: 0.5,
            color: [255, 255, 255, 0.5],
          }
        },
      },
      {
        value: '四类',
        label: 'Ⅳ类',
        symbol: {
          size: 20,
          type: 'simple-marker', // autocasts as new SimpleMarkerSymbol()
          color: [255, 0, 0, 255],
          outline: {
            width: 0.5,
            color: [255, 255, 255, 0.5],
          }
        },
      },
      {
        value: '五类',
        label: 'Ⅴ类',
        symbol: {
          size: 20,
          type: 'simple-marker', // autocasts as new SimpleMarkerSymbol()
          color: [186, 85, 211, 255],
          outline: {
            width: 0.5,
            color: [255, 255, 255, 0.5],
          }
        },
      },
    ],
  },
  labelingInfo:
  {
    labelExpressionInfo: { expression: '$feature["watername"]+":"+$feature["thewlevel"]' },
    labelPlacement: 'esriServerPointLabelPlacementAboveCenter',
    symbol: {
      type: 'LabelSymbol3D',
      symbolLayers: [
        {
          material: { color: [255, 255, 255] },
          type: 'Text',
          halo: { color: [0, 0, 0], transparency: 50, size: 1 },
          size: 10
        }
      ]
    },
    useCodedValues: true
  }
};
export default config;
